home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
TECHNICA
/
AUTOCAD
/
H108.ZIP
/
SMAKER22.ZIP
/
READ.ME
< prev
next >
Wrap
Text File
|
1991-01-02
|
12KB
|
240 lines
READ.ME
SCRIPTmaker Ver 2 - Script Generator Utility
1 August 1989
************************************************************************
When using the Plot Menu Emulator and changing pen/color allocations,
the default pen numbers equal the color number. Plotter configurations
that do not have such a pen number will not accept numbers outside their
acceptable ranges. When writing a script to alter the pen/color
settings, ensure that all the colors you use are allocated a pen that
your plotter supports.
In sequence files, the command zoom MUST be entered with a lowercase Z
where z is the first character on a line. 'ZOOM, zoom or zOOM is Ok,
ZOOM or Zoom gets a blank line in a script file.
Sample Files
Included on the release disk are samples of SEQ and LST files that
illustrate the format of these file types and LSP files that can be
called by scripts to perform various procedures.
In many cases, the most flexible procedure to batch process will combine
in a Script some AutoLISP program calls. Thought and imagination in
using these tools will result in a solution to most batch processing
problems.
Sample file descriptions:
Use your text editor to examine the files that are of interest to you.
They include remarks lines to further assist you in the understanding
and use of their contents. Removal of remarks in your working files will
improve processing speed in most cases.
autoEdit.SEQ Sequence to automatically load a succession of drawings for
individual editing. The script temporarily stops in the
Drawing Editor and allows you to do some editing.
All commands are permissible during editing except SCRIPT,
which will permanently take control from autoEdit. On
completion of manual editing, enter RESUME. The drawing
will be ENDed and another loaded. This sequence ensures
that you edit all the drawings you were supposed to without
having to remember which ones you had done and still had to
do.
autoPLOT.SEQ Sequence to plot files. The plot defaults are accepted and
the sequence should be used with the P (for plot) option
and a LST file of drawings to plot.
autoPLT2.SEQ Sequence to plot files where changes are required to the
plot menu for each drawing to be plotted (ie: scale
factors, remove hidden lines, etc.). The sample has a
placeholder for the filename to plot. You can create your
own plot sequence and insert placeholders for any response
to the plot menu with the Plot Menu Emulator built in to
SCRIPTmaker. Use these sequences with list files containing
the appropriate variables (comma delimited) on each line.
Also remember that list files having multiple variables
must also include a variable header line. Refer to
supplementary documentation.
3DView.SEQ Command sequence to display a view of a 3D drawing in the
Drawing editor from a given viewpoint, remove hidden lines,
make a slide of the resultant display writing it to an
individual slide name (related to the original drawing
name). 3D is merged with a LST file listing the viewpoints
to be so processed.
NextName.LSP AutoLISP function that returns a new DOS legal filename.
The new filename is created by taking the name of the
drawing in the Drawing Editor and modifying it, adding a
sequential number, each time the function is called. This
function is useful for naming multiple files (slides,
blocks, DXF, DXB, etc.) derived from a single drawing
during processing. The derived files are related to the
source drawing by the first part of the filename and
distinguished by a number in the last part of the filename.
MkSld.SEQ Sequence to be used with multiple drawings that will zoom
to extents, make a slide using the drawing name (AutoCAD
supplies the .SLD extension) and quit. Run script from ACAD
call line.
LkSld.SEQ Sequence to display a series of slides. Combine this
sequence with a LST file of slide filenames and run the
resultant script from the Drawing Editor.
SAMDWG.LST List of filenames of some of the drawings supplied with
AutoCAD Rel 10. Use this list as a sample input to
combine with MkSld.SEQ and LkSld.SEQ to make slide and view
slides respectively.
NextView.LSP AutoLISP function that alters the 3D viewpoint by
predetermined steps and displays the resulting image. Using
this function it is possible to plan an orbit around a 3D
object, viewing the object at planned steps around the
orbit. Run from Drawing Editor.
ZoomIn.SEQ Sequence that when combined with a listing of
magifications, will progressively zoom in or out on a
drawing, removing hidden lines and making slides as it
goes. Run from ACAD call line.
LibMaker.SEQ Sequence to quickly create single drawing libraries
composed of multiple blocks, currently existing as multiple
drawing files. Run from the Drawing Editor.
LibXpand.SEQ Sequence to quickly write out blocks from a drawing to
individual drawing files. Run from the Drawing Editor.
BlockPrep.SEQ Sequence to process multiple drawings (perhaps written out
from a drawing using LibXpand.SEQ) to standardise BASE
points, minimise LIMITS and carry out any other uniform
changes. Run from ACAD call line.
ReDef.LSP Redefines block and resumes script operation.
ReBloc.SEQ Redefines blocks in conjunction with ReBloc.LSP.
BLOKLOC.LSP Utility
This AutoLISP program will write to a file called BLOX.LST, a list of
selected blocks together with their insertion points, scale factors and
rotation angles.
This list is suitable for use in a sequence to recreate drawings using
a common or fixed block layout, forming a literal "drawing recipe".
Load the program in the Drawing Editor with the command (load "blokloc").
Enter BLOKLOC and select blocks in the usual way.
A sister procedure, TEXTLOC is included in this file. This program does
the same thing as BLOKLOC, only on text.
MKSEQ.LSP Utility
This AutoLISP program was developed by Scott Williams of Cincinatti,
Ohio. It is a command sequence recorder. In other words, it can record a
sequence of commands entered from the Command: prompt in the AutoCAD
Drawing Editor and write them to a file. Such files are easily modified
to act as SEQ files with SCRIPTmaker.
This utility, saves you having to remember the sequence of commands you
wish to use in a command sequence for batch processing.
The advantage of using this program over one of the keyboard enhancing
programs is that it does not consume your system memory, it fully
utilises theh facilities available in AutoCAD by using the built-in
language and it accepts points picked on the graphics screen.
Load the program in the Drawing Editor with the command (load "MKSEQ").
Enter MKSEQ. The Recording>> prompt will appear after AutoCAD's prompts,
indicating that MKSEQ is recording the sequence. All commands must be
entered from the keyboard although points may be picked on the screen.
End the recording session with the ESC key.
**************************************************************************
Script uses.
Our users find many tasks can be simplified and achieved more quickly
using scripts.
Automating pen setting changes:
Plotting bureaus which receive regular plotting from offices which have
their own peculiar pen setup can automate changing the pen settings with
script and batch file combinations.
For each regular change of pen settings, create a script file,
DRAFT.SCR, FINAL.SCR, BOB.SCR, HELEN.SCR and keep them in your scripts
subdir. Using a script to run through the Plot Menu in AutoCAD also
requires a plot to be produced. In order to minimise operating time,
have pen change scripts plot a small drawing (no entities) to a file.
Make a batch file PENS.BAT, to simplify each change. Perhaps the batch
file could read;
acad x \acad\scripts\%1
Using the batch file to set up the draft plot settings, enter;
PENS DRAFT
or to setup Bob's weird pen arrangement and preferred speeds, enter;
PENS BOB
Automating a multiple drawing editing session:
Ever had to make minor alterations on a host of drawings, each edit
being unique? The biggest problem is making sure you update all the
drawings on your list. Use the autoEdit.SEQ supplied with your own list
of drawings to edit in a LST file. Running these two through SCRIPTmaker
with the Edit script type option generates a script that will
sequentially load each drawing into AutoCAD and stop in the Drawing
Editor. Make you edits and type RESUME. The script saves your drawing
and loads the next one. the cycle repeats for every drawing on your list
until completion or until you run another script in the Drawing Editor.
Enhance autoEDIT.SEQ with zoom windows on pertinent details or title
blocks where such action is appropriate.
Plot file generation:
Plotting is always a bottleneck, regardless of system configuration or
hardware. Enormous time saving is to be made in plotting during out of
hours, when equipment would normally be off. We recommend plotting with
an operator in attendance, regardless of the claims of plotter
manufacturers. But the steps to efficiency lie in generating plot files
automatically without an operator (perhaps overnight) THEN sending them
down to the plotter with an operator standing by (the next day).
Plotting from a plot file is quicker than plotting from a drawing file
because the vector processing is complete.
Automating plot file generation with scripts means that plot files can
be written overnight or during meal breaks resulting in improved
throughput, particularly where large drawing files or hidden line
removal are involved.
If your plotter is a cut sheet model, there is still an advantage to
producing plot files. You can write a batch file with to send your plots
to the plotter, pausing between plots to allow the operator to set up
another sheet. Use the sequence (note the spaces around the embedded
placeholder);
$copy Z1 .plt lpt1
beep
pause
The 'beep' line is optional and useful only if you have Norton Utilities
(place Beep.com in a utility directory in the DOS path) and wish to
alert the operator during batch operations.
Make a list of the files you wish to plot either by typing the filenames
(without extension, this is supplied by the sequence) in with the
automatic directory listing by entering a search specification mask.
Generate a script using the Drawing editor script type option, change to
extension from a .SCR to a .BAT using DOS RENAME command and run as a
batch file from the command line. The batch file will pause and prompt
the operator to 'strike a key when ready...'.
The potential uses of scripts are many and varied. We would be pleased
to hear how you have utilised SCRIPTmaker scripts to improve your
drafting operations and to receive any suggestions you may have.